<div class="bg-light lter b-b wrapper-sm">
	<h1 class="m-n font-thin h4">发货单受理</h1>
</div>
<div class="wrapper-sm" ng-controller="orderAcceptController">
	<div class="panel panel-default">
		<div class="panel-heading font-bold">查询</div>
		<div class="panel-body form-horizontal">
			<div class="form-group">
				<label class="control-label pull-left w-xs">订单编号</label>
				<div class="col-md-2">
					<input type="text" class="form-control input-sm" id="table_orderAccept_orderId" ng-model="queryTerms.orderId" placeholder="请输入订单编号" name="orderId">
				</div>
				<label class="control-label pull-left w-xs">客户单位</label>
				<div class="col-md-2">
					<input type="text" class="form-control input-sm" id="table_orderAccept_clientName" ng-model="queryTerms.clientName" placeholder="请输入客户单位" name="clientName">
				</div>
				<label class="control-label pull-left w-xs">线路地址</label>
				<div class="col-md-2">
					<input type="text" class="form-control input-sm" id="table_orderAccept_route" ng-model="queryTerms.route" placeholder="请输入线路地址" name="route">
				</div>
				<label class="control-label pull-left w-xs">订单状态</label>
				<div class="col-md-2">
					<select id="table_orderAccept_orderStatus" name="orderStatus" class="form-control input-sm" ng-model="queryTerms.orderStatus" ng-options="x.value as x.text for x in orderStatusDropDown">
                        <option value="">全部</option>
                    </select>
				</div>
			</div>
			<div class="form-group">
				<label class="control-label pull-left w-xs">发货起始时间</label>
				<div class="col-md-2 col-xs-12">
					<div class="input-group input-group-sm date">
						<input id="shipStartTime" name="shipStartTime" datetimepicker plugintype="datetime" ng-model="queryTerms.shipStartTime" placeholder="起始时间" class="form-control"
							type="text" />
						<span id="openStartTime" class="input-group-addon curpoint">
                            <span class="glyphicon glyphicon-calendar"></span>
						</span>
					</div>
				</div>
				<label class="control-label pull-left w-xs">发货结束时间</label>
				<div class="col-md-2 col-xs-12">
					<div class="input-group input-group-sm date">
						<input id="shipEndTime" name="shipEndTime" datetimepicker plugintype="datetime" ng-model="queryTerms.shipEndTime" placeholder="结束时间" class="form-control"
							type="text" />
						<span id="openEndTime" class="input-group-addon curpoint">
                            <span class="glyphicon glyphicon-calendar"></span>
						</span>
					</div>
				</div>
				<label class="control-label pull-left w-xs">发货地址</label>
				<div class="col-md-2">
					<input type="text" class="form-control input-sm" id="table_orderAccept_shipAddress" ng-model="queryTerms.shipAddress" placeholder="请输入发货地址" name="shipAddress">
				</div>
				<label class="control-label pull-left w-xs">送货地址</label>
				<div class="col-md-2">
					<input type="text" class="form-control input-sm" id="table_orderAccept_deliverAdderss" ng-model="queryTerms.deliverAddress" placeholder="请输入送货地址" name="deliverAddress">
				</div>
			</div>
			<div class="form-group">
				<label class="control-label pull-left w-xs">下单起始时间</label>
				<div class="col-md-2 col-xs-12">
					<div class="input-group input-group-sm date">
						<input id="placeOrderStartTime" name="placeOrderStartTime" datetimepicker plugintype="datetime" ng-model="queryTerms.placeOrderStartTime" placeholder="起始时间" class="form-control"
							type="text" />
						<span id="openPOrderStartTime" class="input-group-addon curpoint">
                            <span class="glyphicon glyphicon-calendar"></span>
						</span>
					</div>
				</div>
				<label class="control-label pull-left w-xs">下单结束时间</label>
				<div class="col-md-2 col-xs-12">
					<div class="input-group input-group-sm date">
						<input id="placeOrderEndTime" name="placeOrderEndTime" datetimepicker plugintype="datetime" ng-model="queryTerms.placeOrderEndTime" placeholder="结束时间" class="form-control"
							type="text" />
						<span id="openPOrderEndTime" class="input-group-addon curpoint">
                            <span class="glyphicon glyphicon-calendar"></span>
						</span>
					</div>
				</div>
				<label class="control-label pull-left w-xs"></label>
				<div class="col-md-2"></div>
				<label class="control-label pull-left w-xs"></label>
				<div class="col-md-2 col-xs-12">
					<button id="table_orderAccept_queryFunc" ng-click="queryFunc()" class="btn btn-sm btn-default btn-addon" ng-class="{'disabled':querying}" ng-disabled="querying">
                        <i class="fa fa-search" ng-show="!querying"></i>
                        <i class="fa fa-spinner no-bordr" ng-show="querying" ng-class="{'fa-spin':querying}"></i>
                        <span ng-show="!querying">查询</span>
                        <span ng-show="querying">查询中...</span>
                    </button>
				</div>
			</div>
		</div>
	</div>
	<div class="panel panel-default">
		<div class="panel-heading">
			发货单受理列表
		</div>
		<div class="table-responsive">
			<div ui-grid="gridOptions" ui-grid-selection ui-grid-pagination ui-grid-auto-resize ui-grid-resize-columns style="height:{{heightA}}px; min-width:1000px; overflow-x:hidden; min-height:390px;
 overflow-y:hidden;">
				<div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
			</div>
		</div>
		<div class="panel-body">
			<label class="pull-left control-label">已选中订单</label>
			<div class="col-lg-7">
				<span class="ui-select-bootstrap dropdown form-control">
                    <span ng-repeat="item in orderIdInfoList">
                        <span style="margin-right: 3px; margin-bottom:3px;" class="ui-select-match-item btn btn-default btn-xs">
                            <span class="close ui-select-match-close" ng-click="orderDel(item.orderId)">&nbsp;×</span>
				<span>{{item.orderId}}</span>
				</span>
				</span>
				</span>
			</div>
			<button id="table_orderAccept_orderAccept" ng-click="orderAccept()" class="pull-right-xs btn btn-sm btn-info btn-addon "><i class="fa fa-check"></i>发货单受理</button>
		</div>
	</div>
</div>